package day06;

public class Test {
    public static void main(String[] args) {
        int[] arr = testArray(5,100);
        for (int i=0;i<arr.length;i++){
            System.out.println(arr[i]);
        }
    }

    public static void say(){
        System.out.println("大家好...");
    }

    public static void sayHi(String name){
        System.out.println("大家好，我是"+name+",22岁...");
    }

    public static void sayHello(String name,int age){
        System.out.println("大家好，我是"+name+"，"+age+"岁...");
    }

    public static double getNum(){
        return 8.88;
    }

    public static int plus(int num1,int num2){
        return num1+num2;
    }

    public static int[] testArray(int len,int max){
        int[] arr = new int[len];
        for (int i=0;i<arr.length;i++){
            arr[i] = (int)(Math.random()*(max+1));
        }
        return arr;
    }
}
